<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Team Bonus Summary</title>
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript" src="/js/jquery.leanModal.min.js"></script>
<script language="javascript"> 

function transfer(date_begin,date_end){
	window.location.href = 'http://<?php echo WEB_IP?>/staff/team-bonus-wizard-distribution/date_begin/'+ date_begin + '/date_end/' + date_end + '/next/yes';
}



</script>
<style type="text/css">
.test{
 	position:fixed;
	left:350px;
	top:250px;
	background:yellow;
	z-index:1;
	display:none;
	font-size:14px;
}

.table{
	font-size:11px;
}
* html .test{ width:190px; top:expression(eval(document.body.scrollTop)); background:yellow;}
</style>
</head>
<body style="font-family:Arial, Helvetica, sans-serif; line-height:20px;">
<form method = "post" action = "">
<h2>Team Bonus Summary for cycle ( <?php echo $this->cycle;?> )</h2>
<h3><?php echo $this->dateStart;?> ~ <?php echo $this->dateEnd;?></h3>
<table width="600" border="1" cellspacing="1" cellpadding="5">
	<tr>
		<th>Shop Group</th>
		<th>Total Detect</th>
		<th>Current Bonus</th>
		<th>Net Bonus <img src="/css/edit.gif" ></img></th>
	</tr>
<?php foreach($this->bonusList as $k => $v){?>
	<tr>
		<td><input type = "text" name = "shop_code[<?php echo $v['id_shop']?>]" value = "<?php echo $v['shop_code']?>"></input></td>
		<td><div class = "jobId" id = "<?php echo $v['id_shop'];?>"><?php echo $v['total_other_lost'];?></div></td>
		<td><?php echo $v['final_bonus']?></td>
		<td><input type = "text" name = "net_bonus[<?php echo $v['id_shop']?>]" id = "net_bonus[<?php echo $v['id_shop']?>]" value = "<?php echo $v['net_bonus']?>"></input></td>
	</tr>
<?php }?>

</table>
<br/>
<div id = "payrollWizard" <?php if(!$this->nextCheck){?>style = "visibility:hidden;<?php }?>">
<input type = "submit" name = "next" id = "next" value = "Confirm&Next" style = "margin-left:450px;"></input>
</div>
</form>

</body>
</html>